﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Foundation.View {
    public partial class InputBox : Form {
        public InputBox() {
            InitializeComponent();
        }

        /// <summary>
        /// Setz oder gibt den Inhalt der Textbox zurück
        /// </summary>
        public string TextBoxValue {
            get {
                return this.textBox1.Text;
            }
            set {
                this.textBox1.Text = value;
            }
        }

        /// <summary>
        /// Setzt oder gibt den Titel des Fensters zurück
        /// </summary>
        public string Title {
            get {
                return this.Text; 
            }
            set {
                this.Text = value;
            }
        }

        private void button1_Click(object sender, EventArgs e) {
            this.Close();
            DialogResult = System.Windows.Forms.DialogResult.OK; 
        }

        private void button2_Click(object sender, EventArgs e) {
            this.Close(); 
        }
    }
}
